package com.tanhua.model.mongo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.types.ObjectId;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;

/**
 * 语音实体类
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Document(collection = "voice")
public class Voice implements Serializable {

    private ObjectId id;//主键id
    private Long userId;//用户id
    private String gender;//性别
    private Long created;//语音发送时间
    private String soundUrl;//语音地址

}
